<?php

/*

  Action - Victory	$3

  Worth 1 vp
  +1 Card; +1 Action.

 */

class GreatHall extends Card implements iAction, iKingdom, iVictory, iIntrigue {

    public function __construct() {
        parent::__construct("Great Hall", 3);
        $this->victoryPoints = 1;
        $this->undoPlay = false;
        $this->undoBuy = true;
    }

    public function getDescription() {
        return array(
            "Worth 1 vp",
            "+1 Card",
            "+1 Action");
    }
    
    public function play(Game $game, $isRealCard) {
        $drawed_cards =$game->drawCards(1);
        $game->addActions(1);
        ScreenDisplay::addScreenMessage($game, true, "get +1 action and draw ".  nicePrint($drawed_cards), "get +1 action and draws ".sizeof($drawed_cards). " cards");
		$game->cardActionFinished();
        return true;
    }

}

?>